package com.xlhl.init.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xlhl.init.common.QueryWrapperService;
import com.xlhl.init.model.dto.role.AddPermissionToRoleDTO;
import com.xlhl.init.model.entity.Role;

/**
 * @author xlhl
 * @description 针对表【role(角色表(二进制权限控制))】的数据库操作Service
 * @createDate 2025-07-29 22:30:39
 */
public interface RoleService extends IService<Role>, QueryWrapperService<Role> {

    /**
     * 为角色新增/修改权限
     *
     * @param dto
     * @return
     */
    boolean addPermissionToRole(AddPermissionToRoleDTO dto);
}
